package cn.duxiaod.demo.thread;

/**
 * 1.继承Thread类创建线程
 */
public class MyThreadTest1 extends Thread{
    @Override
    public void run() {
        System.out.println(Thread.currentThread());
    }

    public static void main(String[] args) {
        new MyThreadTest1().start();
        new MyThreadTest1().start();
        new MyThreadTest1().start();
    }
}
